from flask_restful import Api

from App.apis.common.city_api import CitiesResource
from App.apis.common.movie_api import MoviesResource, MovieResource


common_api = Api(prefix='/common')       #加一个前缀(这个很牛逼) ，用于区分不同的api           比原来直接用api = Api()好

common_api.add_resource(CitiesResource, '/cities/')
common_api.add_resource(MoviesResource, '/movies/')
common_api.add_resource(MovieResource, '/movies/<int:id>/')
